<?php
/**
 * Created by PhpStorm.
 * User: wchuang
 * Date: 2016/8/24
 * Time: 16:59
 */

use yii\helpers\Html;

$this->title = '高级特性测试用户列表';
$this->params['breadcrumbs'][] = $this->title;
?>




<form class="form-inline" method="post" action="?lydb-user/generate">
	<div class="form-group">
		<label class="sr-only" for="exampleInputAmount"></label>
		<div class="input-group">
			<div class="input-group-addon">虚拟用户</div>
			<input type="text" name="maxNumber" class="form-control" id="exampleInputAmount" placeholder="建议小于100">
			<div class="input-group-addon">人</div>
		</div>
	</div>
	<input type="hidden" name="_csrf" value="<?=Yii::$app->request->csrfToken?>">
	<button type="submit" class="btn btn-primary">生成</button>
</form>

<?php if(isset($result)){?>
<table class="table">
	<caption>批量自动生成虚拟用户结果</caption>
	<thead>
	<tr>
		<th>目标生成数量</th>
	</tr>
	</thead>
	<tbody>
	<tr>
		<td><?php echo  $result['maxNumber']?></td>
	</tr>
	</tbody>
</table>
<?php }?>